﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection;
using StyleMVVM.ViewModel;

namespace SimpleWeather.ViewModels
{
	[NonRunTimeExport]
	[ViewModel("ForecastDetailsPageViewModel")]
	public class DesignForecastDetailsPageViewModel : ForecastDetailsPageViewModel
	{
		[ActivationComplete]
		public async void Activated()
		{
			await DataController.GetWeatherForAllCities();

			SelectedForecast = DataController.GetForecast("02101|" + DateTime.Now.Date);

			OnPropertyChanged("AllForecasts");
		}
	}
}
